package org.feng.client.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * TODO
 *
 * @author feng
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DishesImageClassifyResponse extends BaiDuResponse {
    private static final long serialVersionUID = -5687904608139740842L;

    @JsonProperty("result_num")
    private Integer resultNum;

    private List<Result> result;

    @Data
    public static class Result implements Serializable {

        private static final long serialVersionUID = 2091821109409426148L;

        private String calorie;
        @JsonProperty("has_calorie")
        private Boolean hasCalorie;
        private String name;
        private String probability;

        @JsonProperty("baike_info")
        private BaiKeInfo baiKeInfo;
    }
}
